package cn.always.xiajia.admin.sys.entity;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import cn.always.xiajia.framework.mybatis.core.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@TableName(value = "sys_post", autoResultMap = true)
@KeySequence("sys_post_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class SysPost extends BaseEntity {

	private static final long serialVersionUID = -2829599436263626733L;

	/**
	 * 岗位id
	 */
	@TableId
	private Long postId;

	/**
	 * 岗位编码
	 */
	private String postCode;

	/**
	 * 岗位名称
	 */
	private String postName;

	/**
	 * 岗位排序
	 */
	private Integer postSort;

	/**
	 * 状态（0正常 1停用）
	 */
	private String status;

	/**
	 * 用户是否存在此岗位标识 默认不存在
	 */
	@TableField(exist = false)
	private boolean flag = false;

	/**
	 * 备注
	 */
	private String remark;

}
